function bitmapLibraryPanel(allowSmoothing, compressionType, defaultQuality = "undefined", quality = -1) {
	var selectedItems = fl.getDocumentDOM().library.getSelectedItems();
	var i = 0;
	var nbSelectedItems = selectedItems.length;
	for(; i < nbSelectedItems; i++) {
		selectedItems[i].allowSmoothing = allowSmoothing;
		selectedItems[i].compressionType = compressionType;
		if(defaultQuality != "undefined") {
			selectedItems[i].useImportedJPEGQuality = defaultQuality;
			if(quality > -1) {
				selectedItems[i].quality = quality;
			}
		}
	}
}